/*
 * Public Credit Information Sharing Platform(PCISP).
 * Copyright (c) 2019-2020 jsxzkingdee and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * Please visit https://www.zhengxinsoft.com if you need additional information or have any questions.
 */

package com.platform.comm.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * Description: Redis Hash KeyValue.
 *
 * @author libin created on 2020/5/20.
 */
@Data
public class KeyValue implements Serializable {
    private String key;
    private Object value;

    public static KeyValue of(String key, Object value) {
        KeyValue keyValue = new KeyValue();
        keyValue.setKey(key);
        keyValue.setValue(value);
        return keyValue;
    }
}
